package cn.wolfcode.trip.base.query;

import lombok.*;
import org.springframework.util.StringUtils;
@Getter@Setter@ToString
@AllArgsConstructor
@NoArgsConstructor
public class QueryObject {
    private int currentPage=1;
    private int pageSize=3;
    private String keyword;
    private String orderBy;

    public String getKeyword() {
        return StringUtils.hasLength(keyword) ? keyword : null;
    }
}
